//
//  BangoAppDelegate.h
//  Bango
//

#import <UIKit/UIKit.h>

@class BGOAnalyticsManager;
@interface BangoAppDelegate : NSObject <UIApplicationDelegate>
{
    
    UIWindow *window;
	
	// the tab controller
	UITabBarController *tabcontroller;
	
    
@private
  UIBackgroundTaskIdentifier backgroundTaskId_;
	BGOAnalyticsManager *analytics_;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;

// tab controller outlet
@property (nonatomic, retain) IBOutlet UITabBarController *tabcontroller;

- (NSString *)applicationDocumentsDirectory;

void uncaughtExceptionHandler(NSException *exception);

///////////////////////////////////////////////////////
// static

// Obtains reference to the app delegate
+ (BangoAppDelegate *)sharedAppDelegate;

///////////////////////////////////////////////////////
// Logging Levels

enum LOGGING_LEVELS
{
    LEVEL_VIDEO               = 1,
    LEVEL_AUDIO               = 2,
    LEVEL_PAGEVIEW_AND_SEARCH = 4
};

#define NUMBER_OF_LOGGING_LEVELS = 3;

@end

